package org.dim.oa.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tb_file")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FileEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * insert前自行set主键值
     * NONE无状态,该类型为未设置主键类型(注解里等于跟随全局,全局里约等于 INPUT)
     * 分配UUID（mybatis-plus默认生成uuid）
     * 分配ID(mybatis-plus)默认用雪花算法生成默认id
     */
    @TableId(type = IdType.NONE)
    private Long id;
    private String fileName;
    private String originalFileName;
    private Long fileSize;
    private String fileType;
    private String bucket;
    private String filePath;
    private String appCode;
    private String curPath;
    private String creator;
    private Date createTime;
    //1是公开，0是私有
    private Integer accessFlag;
    private Integer dir;
}
